package top.yokey.shopnc.model;

import top.yokey.base.base.BaseHttpClient;
import top.yokey.base.base.BaseHttpListener;

@SuppressWarnings("ALL")
public class SellerLoginModel {

    private final String ACT = "seller_login";
    private static volatile SellerLoginModel instance;

    public static SellerLoginModel get() {
        if (instance == null) {
            synchronized (SellerLoginModel.class) {
                if (instance == null) {
                    instance = new SellerLoginModel();
                }
            }
        }
        return instance;
    }

    public void index(String sellerName, String password, BaseHttpListener baseHttpListener) {

        BaseHttpClient.get().ready(ACT, "index")
                .add("client", "android")
                .add("password", password)
                .add("seller_name", sellerName)
                .post(baseHttpListener);

    }

}
